import $ from 'jquery';
import _common from '../commonJs/wptx_common';
import _tools from '../commonJs/wptx_tools';
import _request from '../../utils/request';
let _FUNCTION_NAME = "/mlapi/channel/common/channelitemsynctask/";
export default {
    create: _create, //[API]创建发布任务

}
function _create(vm, data, callBack) {
    let self = vm;
    _tools.info("===> 【" + data + "】 -- > data")
    let url = _FUNCTION_NAME + "create";
    let params = data
    _request({
        url: url,
        method: 'post',
        data: params
    }).then((res) => {
        _tools.info("===> 【" + url + "】 -- > API 调用成功 ")
        _tools.info(res)
        callBack(res.result);
    }).catch((error) => {
        _tools.info("===> 【" + url + "】 -- > API 调用异常 ")
        _tools.error(error);
        // callBack(null);
    });
}
